<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./2.js" type="module"></script>
</head>
<body>
    <!-- 错误集
    1.错误
    can not use import statement outside a module
    解决方法：script标签 +type="module"
    2.Access to script at "file"://
    原因：不是使用 服务器方式打开
    解决方法：open with live server 打开 -->
</body>
</html>